imonit_client.php
This is a client-side library for using the i-mon-it services.
This library contains several static functions, which make remote calls to the i-mon-it server.In order to use the i-mon-it micro services you need to include this library and imonit_client_lib.php into every page and class you want to monitor with the i-mon-it service. In order to use the services you need to call the centrali-mon-it Saas micro services. Below you find the explanation how to do this:
- In order to track the start of your page you would need to call the static method imonit_client::startPage() and at the end of your page you need to call the corresponding static method: imonit::endPage(). In this documentation you find the required parameters in order to call these static methods. In order to track and morning tour your business logic you would would use the following static methods: for starting one of your methods in your business logicimoint_client::start() . and for ending a message in your business logic use: imoni_client::end()
Tags
Table of Contents
Classes
- imonit_client
- This is the implementation of the client-side class to use the i-mon-it micro services.
Constants
- checktoken = \listener . '/checktoken.php'
- URL for the verifytoken service
- end = \listener . 'end.php'
- URL for the end service.
- endpage = \listener . '/endpage.php'
- URL for the endpage service.
- imonit_server = 'server.i-mon-it.de'
- itoken = 'token'
- This is the name of the session variable holding information about the token number used on the website to be monitored.
- itokenfilename = 'imonit.token'
- Name of the local file holding the token information.
- lastentry = \listener . 'lastentry.php'
- This is the microservice for retrieving the last id of a particular call.
- listener = 'http://' . \imonit_server . '/'
- This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.
- local_server = '.i-mon-it.local'
- This is the name of the i-mon-it website.
- mid = \listener . 'mid.php'
- URL for the mid service.
- midpage = \listener . '/midpage.php'
- URL for the midpage service.
- start = \listener . 'start.php'
- this is the URL used to send the monitoring request for the start.
- startpage = \listener . 'startpage.php'
- This is the URL for the startpage service.
- ua = \listener . 'UA.php'
- This is the URk base for retrieving the Useragent id.
Constants
checktoken
URL for the verifytoken service
public
string
checktoken
= \listener . '/checktoken.php'
URL for the verifytoken service
Tags
end
URL for the end service.
public
string
end
= \listener . 'end.php'
URL for the end Service
Tags
endpage
URL for the endpage service.
public
string
endpage
= \listener . '/endpage.php'
URL for the endpage service
Tags
imonit_server
public
mixed
imonit_server
= 'server.i-mon-it.de'
itoken
This is the name of the session variable holding information about the token number used on the website to be monitored.
public
mixed
itoken
= 'token'
you
itokenfilename
Name of the local file holding the token information.
public
string
itokenfilename
= 'imonit.token'
Name of the tokenfile holding the correct information.
lastentry
This is the microservice for retrieving the last id of a particular call.
public
string
lastentry
= \listener . 'lastentry.php'
listener
This URL used by the central i-mon-it tracking service to fire monitoring and administrative requests.
public
string
listener
= 'http://' . \imonit_server . '/'
Do not change the value of the constant.
URL used the fire monitoring and administrative requests to the i-mon-it service.
local_server
This is the name of the i-mon-it website.
public
string
local_server
= '.i-mon-it.local'
name of the i-mon-it website
mid
URL for the mid service.
public
string
mid
= \listener . 'mid.php'
Urlfor the mid service
Tags
midpage
URL for the midpage service.
public
string
midpage
= \listener . '/midpage.php'
URL for the endpage service
Tags
start
this is the URL used to send the monitoring request for the start.
public
string
start
= \listener . 'start.php'
URL start Service
Tags
startpage
This is the URL for the startpage service.
public
string
startpage
= \listener . 'startpage.php'
URL for the startpage service
Tags
ua
This is the URk base for retrieving the Useragent id.
public
string
ua
= \listener . 'UA.php'